package org.eiahe.hr.attendance.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.time.LocalTime;

/**
 * 班次主表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_shift")
public class Shift extends BaseEntity {

    /**
     * 班次ID
     */
    @TableId(value = "shift_id", type = IdType.AUTO)
    private Long shiftId;

    /**
     * 班次名称
     */
    private String shiftName;

    /**
     * 上班时间
     */
    private LocalTime workStartTime;

    /**
     * 下班时间
     */
    private LocalTime workEndTime;

    /**
     * 午休开始时间
     */
    private LocalTime lunchStartTime;

    /**
     * 午休结束时间
     */
    private LocalTime lunchEndTime;

    /**
     * 迟到阈值(分钟)
     */
    private Integer lateThresholdMinutes;

    /**
     * 早退阈值(分钟)
     */
    private Integer earlyThresholdMinutes;

    /**
     * 状态(0正常 1停用)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    @TableLogic
    private String delFlag;
}
